package com.learn.springbootcache;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author Jmy
 */
@MapperScan("com.learn.springbootcache.mapper")
@SpringBootApplication
// 开启缓存
@EnableCaching
// 开启注解 Rabbit
@EnableRabbit
// 开启异步任务
@EnableAsync
// 开启定时任务
@EnableScheduling
public class SpringbootcacheApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootcacheApplication.class, args);
    }

}
